package com.letao.pojo;

import java.util.Date;

/**
 * Transaction entity. @author MyEclipse Persistence Tools
 */

public class Transaction implements java.io.Serializable {

	// Fields

	private Integer tid;
	private Goods goods;
	private User user;
	private Boolean tstate;
	private Date ttime;
	private Float tprice;

	// Constructors

	/** default constructor */
	public Transaction() {
	}

	/** minimal constructor */
	public Transaction(Goods goods, User user) {
		this.goods = goods;
		this.user = user;
	}

	/** full constructor */
	public Transaction(Goods goods, User user, Boolean tstate, Date ttime,
			Float tprice) {
		this.goods = goods;
		this.user = user;
		this.tstate = tstate;
		this.ttime = ttime;
		this.tprice = tprice;
	}

	// Property accessors

	public Integer getTid() {
		return this.tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Boolean getTstate() {
		return this.tstate;
	}

	public void setTstate(Boolean tstate) {
		this.tstate = tstate;
	}

	public Date getTtime() {
		return this.ttime;
	}

	public void setTtime(Date ttime) {
		this.ttime = ttime;
	}

	public Float getTprice() {
		return this.tprice;
	}

	public void setTprice(Float tprice) {
		this.tprice = tprice;
	}

}